package top.bugger168.ucenter.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 校验码客户端
 *
 * @author wanghaidong
 * @date 2023/08/28
 */
@FeignClient(value = "checkcode",fallbackFactory = CheckCodeClientFactory.class)
@RequestMapping("/checkcode")
public interface CheckCodeClient {

    /**
     * 验证
     *
     * @param key  钥匙
     * @param code 密码
     * @return {@link Boolean}
     */
    @PostMapping(value = "/verify")
    Boolean verify(@RequestParam("key") String key,@RequestParam("code") String code);

}